package tjs.study.mini.mybatismini.mapper;


import tjs.study.mini.mybatismini.config.annotion.MiniMapper;
import tjs.study.mini.mybatismini.config.annotion.MiniParam;
import tjs.study.mini.mybatismini.config.annotion.MiniSelect;
import tjs.study.mini.mybatismini.entity.TjsUser;

/**
 * @author nicky
 * @date 2021/9/1 下午5:44
 */
@MiniMapper
public interface MyTjsUserMapper {
    @MiniSelect("select id, name, state, country from tjs_user where state = #{state}")
    TjsUser findByState(@MiniParam("state") String state);
}
